<template>
  <div>
    <p>GrandSon </p>
    <div>
      <p>a:{{a}} </p>
      <p>b:{{b}} </p>
      <p>c:{{c}} </p>
      <button @click="changeA(a + 1) ">对a累加</button>
    </div>
  </div>
</template>

<script>
export default {
 inject:['a','b','c', 'changeA']
}
</script>

<style>

</style>